package com.galleryviewpager.i_bezier;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

import com.galleryviewpager.R;

/**
 * 贝塞尔曲线
 */
public class BezierCurveActivity extends AppCompatActivity {

    private ThreeBezierCurveView bezierCurveView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_bersizer_curve);
        bezierCurveView = findViewById(R.id.tcv_view);
    }

    public void controlClick(View view) {
        switch (view.getId()) {
            case R.id.btn_l:
                bezierCurveView.setControlLeftOrNot(true);
                break;
            case R.id.btn_r:
                bezierCurveView.setControlLeftOrNot(false);
                break;
        }
    }
}
